package jiali.test.easyfactory;

public class Div extends Operation {

    @Override
    public double getResult(String numberA, String numberB) throws Exception {
        if (Double.parseDouble(numberB) == 0) {
            throw new ArithmeticException();
        }
        return Double.parseDouble(numberA) / Double.parseDouble(numberB);
    }
}
